//
//  JSMLeavingHeaderShowCityDetailsHottestModel.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/12/2.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMLeavingHeaderShowCityDetailsHottestModel.h"

@implementation JSMLeavingHeaderShowCityDetailsHottestModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        self.descriptionStr = value;
    }
    if ([key isEqualToString:@"address"]) {
        self.addressStr = value;
    }
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.descriptionStr = [aDecoder decodeObjectForKey:@"descriptionStr"];
        self.cover_route_map_cover = [aDecoder decodeObjectForKey:@"cover_route_map_cover"];
        self.addressStr = [aDecoder decodeObjectForKey:@"addressStr"];
        self.name = [aDecoder decodeObjectForKey:@"name"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.descriptionStr forKey:@"descriptionStr"];
    [aCoder encodeObject:self.cover_route_map_cover forKey:@"cover_route_map_cover"];
    [aCoder encodeObject:self.addressStr forKey:@"addressStr"];
    [aCoder encodeObject:self.name forKey:@"name"];
}

@end
